<?php
/**
 * All CActiveRecords should inherit this
 * 
 * @uses CActiveRecord
 * @package 
 * @version $id$
 * @copyright 2010 &copy; The YAP Group
 * @author Flavius Aspra <flav@yet-another-project.com> 
 * @license License {@link http://yet-another-project.com/project/yap/LICENSE.txt}
 */
class ActiveRecord extends CActiveRecord {
	/**
	 * returns the db connection component
	 *
	 * Yii modules is designed as a hybrid of relational and object-oriented
	 * DBMSes from the ground up, thus the component for the relational
	 * database is called intuitively "rdb".
	 * 
	 * @access public
	 * @return void
	 */
	public function getDbConnection() {
		return Yii::app()->rdb;
	}
}
